<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta http-equiv="Content-Language" content="zh-CN" />
<meta name="Keywords" content="" />
<meta name="Description" content="" />
<title>Huanqiu Front-end labrary</title>
<link id="customStyle" rel="stylesheet" rev="stylesheet" href="assets/dpSyntaxHighlighter.css" type="text/css" media="screen"/>
<script src="_hqfl/HQ.config.js" type="text/javascript"></script>
<script src="_hqfl/HQ.dom.js" type="text/javascript"></script>
<script src="_hqfl/HQ.event.js" type="text/javascript"></script>
<script src="_hqfl/HQ.cookie.js" type="text/javascript"></script>
<script src="_hqfl/HQ.css.js" type="text/javascript"></script>
</head>
<body>
<h1>Huanqiu Front-end labrary<sup>BETA</sup></h1>
<fieldset>
	<legend>COOKIE</legend><div class="exampleContainer">
<script>
	function displayCookie(){
		alert("value1 : " + HQ.cookie.get("value1"));
		alert("value2 : " + HQ.cookie.get("value2"));
	}
</script>
<b>Cookie key:</b> value1 <b>value:</b> <input id="t1"/> <button onclick="HQ.cookie.set('value1',HQ.dom.get('t1').value)">设置</button> <button onclick="HQ.cookie.del('value1')">删除</button><br/>
<b>Cookie key:</b> value2 <b>value:</b> <input id="t2"/> <button onclick="HQ.cookie.set('value2',HQ.dom.get('t2').value)">设置</button>  <button onclick="HQ.cookie.del('value2')">删除</button><br/>
<button onclick="displayCookie()">显示每个cookie的内容</button>
<button onclick="alert(document.cookie)">所有Cookie</button>
</div>

<textarea name="code" class="Javascript" cols="60" rows="1">
HQ.cookie.set('value1',HQ.dom.get('t1').value)
HQ.cookie.set('value2',HQ.dom.get('t2').value)
HQ.cookie.get("value1")
</textarea>
</fieldset>
	<script src="assets/dpSyntaxHighlighter.js"></script>
	<script language="javascript"> 
	dp.SyntaxHighlighter.HighlightAll('code'); 
	</script>
</body>
</html>
